import http from "@/utils/request";
export default {
	config: {
		url: `/app/config/show`,
		name: "获取系统配置",
		async get(data = {}) {
			return await http.get(this.url, data);
		},
	},
	search: {
		url: `/app/system/searchAll`,
		name: "搜索",
		async get(data = {}) {
			return await http.get(this.url, data);
		},
	},
	agreement: {
		url: `/app/system/getAgreement`,
		name: "获取协议",
		async get(data = {}) {
			return await http.get(this.url, data);
		},
	},
	banner: {
		url: `/app/system/getBanner`,
		name: "获取首页banner",
		async get(data = {}) {
			return await http.get(this.url, data);
		},
	},
	kingList: {
		url: `/app/config/kingList`,
		name: "获取首页金刚区",
		async get(data = {}) {
			return await http.get(this.url, data);
		},
	},
	wordList: {
		url: `/app/system/searchWordslist`,
		name: "获取热门搜索词",
		async get(data = {}) {
			return await http.get(this.url, data);
		},
	},
	upload: {
		url: `/app/upload/image`,
		name: "上传图片",
		async upload(data = {}) {
			return await http.upload(this.url, data);
		},
	},
	category: {
		url: `/app/system/categoryList`,
		name: "获取分类",
		async get(data = {}) {
			return await http.get(this.url, data);
		},
	},
	getJsSDKAtuh: {
		url: `/app/goods/getJsSDKAtuh`,
		name: "获取JSSDK",
		async get(data = {}) {
			return await http.get(this.url, data);
		},
	},
	popup: {
		url: `/app/system/popup`,
		name: "获取首页弹窗",
		async get(data = {}) {
			return await http.get(this.url, data);
		},
	},
};
